<!DOCTYPE html>
<html>
<head>
    {include file="public/head"}
</head>
<body>
<div class="g-flexview">
    <header class="m-navbar">
        <a href="javascript:history.back();" class="navbar-item">
            <i class="back-ico"></i>
        </a>
        <div class="navbar-center"><span class="navbar-title">交易密码</span></div>
    </header>
    <div class="g-scrollview">
        <form action="#" method="post">
            <div class="m-cell">
                <div class="cell-item">
                    <div class="cell-left">登录密码：</div>
                    <div class="cell-right">
                        <input type="text" class="cell-input" placeholder="请输入登录密码" autocomplete="off" name="login_password"/>
                    </div>
                </div>
                <div class="cell-item">
                    <div class="cell-left">交易密码：</div>
                    <div class="cell-right">
                        <input type="number" class="cell-input" placeholder="请输入交易密码" name="trade_password"/>
                    </div>
                </div>
                <div class="cell-item">
                    <div class="cell-left">确认密码：</div>
                    <div class="cell-right">
                        <input type="number" class="cell-input" placeholder="请再次输入交易密码" name="trade_password_1"/>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <button class="btn-block btn-primary trade_password" type="button">确认修改</button>
</div>
{include file="public/js"}
<script>
    !function ($) {
        $('.trade_password').click(function () {
            dialog.confirm('提示','设置交易密码',function () {
                $.post('/index/set/tradePassword',$('form').serialize(),function (res) {
                    dialog.toast(res.msg,'none',1000);
                });
            });
        });
    }(jQuery);
</script>
</body>
</html>